/**
 * Created by ssy on 2017/11/6.
 */
function login(mobile,password){
    var urlLogin = "http://uac.10010.com/oauth2/new_auth?req_time=" + new Date().valueOf() ;
    var postdata = new LinkedHashMap();
    postdata.put("app_code","ECS-YH-WAP");
    postdata.put("user_id", mobile);
    postdata.put("user_pwd", password);
    postdata.put("display", "web");
    postdata.put("response_type", "code");
    postdata.put("is_check", "1");
    postdata.put("user_type", "01");
    postdata.put("pwd_type", "01");
    postdata.put("redirect_uri", "http://wap.10010.com/t/loginCallBack.htm");
    postdata.put("state", "http://wap.10010.com/t/myunicom.htm");

    var result = httpClient.postFormData(urlLogin,null,postdata,"utf-8") ;
    print(result)
    return result ;
}